import Index from '../pages/index'
import Discount from '../components/discount/discount'
import DiscountList from '../components/discount/discountList'
import GoodsList from '../components/goods/goodsList'
import GoodsOperate from '../components/goods/goodsOperate'
import GoodsFormatList from '../components/goods/goodsFormat/goodsFormatList'
import GoodsFormatOperate from '../components/goods/goodsFormat/goodsFormatOperate'
import SkuCreated from '../components/goods/sku/skuCreated'
import GoodsDetail from '../components/goods/goodsDetail'
import SkuPrice from '../components/goods/sku/skuPrice'
import SkuPriceEdit from '../components/goods/sku/skuPriceEdit'
import SkuCreatedOperate from '../components/goods/sku/skuCreatedOperate'
import SkuCreatedDetail from '../components/goods/sku/skuCreatedDetail'
import AfterSalesList from '../components/afterSales/afterSalesList'
import AfterSalesIncrease from '../components/afterSales/afterSalesIncrease'
import ReturnList from '../components/afterSales/returnList'
import ReturnEdit from '../components/afterSales/returnEdit'
import RefundList from '../components/afterSales/refundList'
import RefundEdit from '../components/afterSales/refundEdit'
import ReturnReasonList from '../components/afterSales/returnReasonList'
import AfterSalesEdit from '../components/afterSales/afterSalesEdit'
import OperatingRecord from '../components/afterSales/operatingRecord'
import OrderManage from '../components/order/orderManage'
import OrderDetail from '../components/order/orderDetail'
import ShipmentOrder from '../components/order/shipmentOrder'
import DeliveryOrder from '../components/order/deliveryOrder'
import MemberList from '../components/member/memberList'
import MemberDetail from '../components/member/memberDetail'
import MemberGrowList from '../components/member/memberGrowList'
import MemberGrowOperate from '../components/member/memberGrowOperate'
import MemberIntegralList from '../components/member/memberIntegralList'
import MemberIntegralOperate from '../components/member/memberIntegralOperate'
import SellerList from '../components/sellers/sellerList'
import SellerDetail from '../components/sellers/sellerDetail'
import SellerOperate from '../components/sellers/sellerOperate'

const routes = [
  {
    path: '/',
    component: Index,
    routes: [
      {
        path: '/discountNew',
        component: Discount
      },
      {
        path: '/discountEdit/:id',
        component: Discount
      },
      {
        path: '/discountSee/:id',
        component: Discount
      },
      {
        path: '/discountList',
        component: DiscountList
      },
      {
        path: '/goodsList',
        component: GoodsList
      },
      {
        path: '/goodsCreate',
        component: GoodsOperate
      },
      {
        path: '/goodsEdit/:id',
        component: GoodsOperate
      },
      {
        path: '/goodsDetail/:id',
        component: GoodsDetail
      },
      {
        path: '/goodsFormatList/:id',
        component: GoodsFormatList
      },
      {
        path: '/goodsFormatCreate',
        component: GoodsFormatOperate
      },
      {
        path: '/goodsFormatOperate/:id',
        component: GoodsFormatOperate
      },
      {
        path: '/skuCreated/:id',
        component: SkuCreated
      },
      {
        path: '/skuPrice/:id',
        component: SkuPrice
      },
      {
        path: '/skuPriceCreate',
        component: SkuPriceEdit
      },
      {
        path: '/skuPriceEdit/:id',
        component: SkuPriceEdit
      },
      {
        path: '/skuPriceSee/:id',
        component: SkuPriceEdit
      },
      {
        path: '/skuCreatedOperate/:id',
        component: SkuCreatedOperate
      },
      {
        path: '/skuCreatedDetail/:id',
        component: SkuCreatedDetail
      },
      {
        path: '/afterSalesList',
        component: AfterSalesList
      },
      {
        path: '/afterSalesIncrease',
        component: AfterSalesIncrease
      },
      {
        path: '/afterSalesEdit/:id',
        component: AfterSalesEdit
      },
      {
        path: '/returnList',
        component: ReturnList
      },
      {
        path: '/returnEdit/:id',
        component: ReturnEdit
      },
      {
        path: '/refundList',
        component: RefundList
      },
      {
        path: '/refundEdit/:id',
        component: RefundEdit
      },
      {
        path: '/returnReasonList',
        component: ReturnReasonList
      },
      {
        path: '/operatingRecord/:id',
        component: OperatingRecord
      },
      {
        path: '/orderManage',
        component: OrderManage
      },
      {
        path: '/orderDetail/:id',
        component: OrderDetail
      },
      {
        path: '/shipmentOrder',
        component: ShipmentOrder
      },
      {
        path: '/deliveryOrder',
        component: DeliveryOrder
      },
      {
        path: '/memberList',
        component: MemberList
      },
      {
        path: '/memberDetail/:id',
        component: MemberDetail
      },
      {
        path: '/memberGrowList',
        component: MemberGrowList
      },
      {
        path: '/memberGrowCreate',
        component: MemberGrowOperate
      },
      {
        path: '/memberGrowEdit/:id',
        component: MemberGrowOperate
      },
      {
        path: '/memberIntegralList',
        component: MemberIntegralList
      },
      {
        path: '/memberIntegralCreate',
        component: MemberIntegralOperate
      },
      {
        path: '/memberIntegralEdit/:id',
        component: MemberIntegralOperate
      },
      {
        path: '/sellerList',
        component: SellerList
      },
      {
        path: '/sellerDetail',
        component: SellerDetail
      },
      {
        path: '/sellerCreate',
        component: SellerOperate
      },
      {
        path: '/sellerEdit/:id',
        component: SellerOperate
      }
    ]
  }
]
export default routes